import request from '@/utils/request'

export function listtsControlbox(query) {
  return request({
    url: '/material/tsControlbox/list',
    method: 'get',
    params: query
  })
}

export function createtsControlbox(data) {
  return request({
    url: '/material/tsControlbox/create',
    method: 'post',
    data
  })
}

export function readtsControlbox(data) {
  return request({
    url: '/material/tsControlbox/get/' + data.id,
    method: 'get'
  })
}

export function updatetsControlbox(data) {
  return request({
    url: '/material/tsControlbox/update',
    method: 'post',
    data
  })
}

export function deletetsControlbox(data) {
  return request({
    url: '/material/tsControlbox/delete',
    method: 'post',
    data
  })
}
